<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>中关村详情页</title>
</head>
<body>
    <link rel="stylesheet" href="/css/detail.css">
    <div class="header"></div>
    <div class="list">
        <div class="content">
            <p>首页>手机>魅族>魅族16 X（全网通）</p>
        </div>
    </div>
    <div class="detail">
        <div class="content"  id="detaildiv">
        </div>
        <script type="text/html" id="detail">           
                <div class="left">
                    <div id="smallbox" class="csmallbox">
                        <span></span>
                        <img src="{{bigimg}}" alt="" id="middle">
                    </div>
                    <div id="bigbox" class="cbigbox">
                        <img src="{{bigimg}}" alt="" id="big">
                    </div>
                    <div class="small">
                        <button id="left">《</button>
                        <ul>
                            {{each images image,index}}
                            <li> <img src="{{image}}" alt="" data-id="{{index}}"></li>
                            {{/each}}
                        </ul>
                        <button id="right">》</button>
                    </div>
                </div>
                <div class="right">                    
                    <div class="name"><h4>{{title}}</h4></div>
                        <div class="price">价格<span>￥{{price}}</span></div>
                        <div class="color">机身颜色{{each color item}}<span>{{item}}</span>{{/each}}</div>
                        <div class="type">版本类型{{each type item}}<span>{{item}}</span>{{/each}}</div> 
                        <div class="num">数量<button id="cut">-</button><span>1</span><button id="add">+</button></div>
                        <button class="button">加入购物车</button>
                </div>
        
        </script>
        
    </div>
    <div id="shop" class="ishop"><a href="shopcar.html"><img src="http://img2.imgtn.bdimg.com/it/u=244705817,2649993063&fm=26&gp=0.jpg" alt=""><span>1</span></a></div>
    <footer></footer>
    <script src="/libs/require/require.min.js" data-main="/js/detail.js"></script>
</body>
</html>